﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.BizTalk.Bam.EventObservation;
using System.Data.SqlClient;

namespace Software41.Tracking.BAM
{
    public interface IEventStream
    {
        void AddReference(string activityName, string activityInstance, string referenceType, string referenceName, string referenceData);
        void AddReference(string activityName, string activityInstance, string referenceType, string referenceName, string referenceData, string longreferenceData);
        void AddRelatedActivity(string activityName, string activityInstance, string relatedActivityName, string relatedActivityInstance);
        void BeginActivity(string activityName, string activityInstance);
        void Clear();
        void EndActivity(string activityName, string activityInstance);
        void Flush();
        //void Flush(SqlConnection connection);
        //void StoreCustomEvent(IPersistQueryable singleEvent);
        void UpdateActivity(string activityName, string activityInstance, params object[] data);
    }
}
